Package edu.claflin.finder.io.graph
Class NOABatchIO
java.lang.Object
edu.claflin.finder.io.graph.NOABatchIO
- All Implemented Interfaces:
GraphWriter
A class for writing graphs in the NOA batch format.
NOA batch format is similar to the SIF format except that multiple graphs
are contained within a single file for batch processing by the NOA plugin
for Cytoscape. An example batch graph is here:
- Version:
- 3.1 May 28, 2015
- Author:
- Charles Allen Schultz II
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringContains the String representation of the default relationship to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringverifyRelationship(Object edgeData) Verifies the relationship between edges.voidwriteGraph(Graph toWrite) Writes graphs to memory.
-
Field Details
-
defaultRelationship
Contains the String representation of the default relationship to use. The default relationship value is used when writing a graph and the graph being read does not use String objects to represent edges. Currently, String objects are being used for simplicity.
-
-
Constructor Details
-
NOABatchIO
Constructs the NOABatchIO object.- Parameters:
defaultRelationship- the String representing the default edge relationship.
-
-
Method Details
-
writeGraph
Writes graphs to memory. Writes NOA batch files.- Specified by:
writeGraphin interfaceGraphWriter- Parameters:
toWrite- the Graph object to write to memory.
-
verifyRelationship
Verifies the relationship between edges. Checks to see that the Object used in theGraphfor representing an edge is a String. If it not, the default relationship is used instead.- Parameters:
edgeData- the Edge Data- Returns:
- the relationship in the edge
-